<template>
  <div class="header">
    <div class="header-left back-icon">
      <router-link to='/pace'>
        <svg class="icon arrow" aria-hidden="true">
          <use xlink:href="#iconleft"></use>
        </svg>
      </router-link>
    </div>
    <div class="header-title v-center">
      {{projectName}}
    </div>
    <div class="header-right">
    </div>
  </div>
</template>

<script>
export default {
  name: 'projectHeader',
  data () {
    return {
      projectName: sessionStorage.getItem('projectName')
    }
  }
}
</script>

<style lang="stylus" scoped>
  @import "~styles/varibles.styl"
  .header
    display flex
    color $headerFontColor
    background $headerBgColor
    position: relative
    line-height: $headerHeight
  .arrow
    color #757575
  .header-left
    margin-left .4rem
    width: .64rem
    float left
    .back-icon
      text-align: center
      font-size: .4rem
  .header-title
    flex: 1
    font-size $headerFontSize
  .header-right
    min-width: 2rem
</style>
